package main

import "github.com/atotto/clipboard"

type WriteClipboard struct {
	Data []byte
}

func NewWriteClipboard(Data []byte) (*WriteClipboard, error) {
	wc := &WriteClipboard{Data: Data}
	return wc, nil
}

func (wc *WriteClipboard) Write() error {
	return clipboard.WriteAll(string(wc.Data))
}
